package com.ruoyi.book.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书对象 book
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
public class Book extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long bookId;

    /** 类号 */
    @Excel(name = "类号")
    private Long categoryId;

    /** ISBN */
    @Excel(name = "ISBN")
    private String bookIsbn;

    /** 书名 */
    @Excel(name = "书名")
    private String bookName;

    /** 出版社 */
    @Excel(name = "出版社")
    private String bookPublisher;

    /** 作者 */
    @Excel(name = "作者")
    private String bookAuthor;

    /** 出版日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出版日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date bookPublishingyear;

    /** 库存 */
    @Excel(name = "库存")
    private Long bookInventory;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal bookPrice;

    public void setBookId(Long bookId)
    {
        this.bookId = bookId;
    }

    public Long getBookId()
    {
        return bookId;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setBookIsbn(String bookIsbn)
    {
        this.bookIsbn = bookIsbn;
    }

    public String getBookIsbn()
    {
        return bookIsbn;
    }
    public void setBookName(String bookName)
    {
        this.bookName = bookName;
    }

    public String getBookName()
    {
        return bookName;
    }
    public void setBookPublisher(String bookPublisher)
    {
        this.bookPublisher = bookPublisher;
    }

    public String getBookPublisher()
    {
        return bookPublisher;
    }
    public void setBookAuthor(String bookAuthor)
    {
        this.bookAuthor = bookAuthor;
    }

    public String getBookAuthor()
    {
        return bookAuthor;
    }
    public void setBookPublishingyear(Date bookPublishingyear)
    {
        this.bookPublishingyear = bookPublishingyear;
    }

    public Date getBookPublishingyear()
    {
        return bookPublishingyear;
    }
    public void setBookInventory(Long bookInventory)
    {
        this.bookInventory = bookInventory;
    }

    public Long getBookInventory()
    {
        return bookInventory;
    }
    public void setBookPrice(BigDecimal bookPrice)
    {
        this.bookPrice = bookPrice;
    }

    public BigDecimal getBookPrice()
    {
        return bookPrice;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bookId", getBookId())
            .append("categoryId", getCategoryId())
            .append("bookIsbn", getBookIsbn())
            .append("bookName", getBookName())
            .append("bookPublisher", getBookPublisher())
            .append("bookAuthor", getBookAuthor())
            .append("bookPublishingyear", getBookPublishingyear())
            .append("bookInventory", getBookInventory())
            .append("bookPrice", getBookPrice())
            .toString();
    }
}
